import { BaseEntity } from '@cool-midway/core';
import { BeforeRemove, Column, Entity, Index } from 'typeorm';

/**
 *
 */
@Entity('demo_ship_data')
export class DemoShipDataEntity extends BaseEntity {

  @Column({ comment: '船的编号', default: 1 })
  shipId: number;

  @Column({ comment: '船系列号', default: '' })
  sn: string;

  @Column({ comment: '俯仰角', default: '' })
  pitchAngle: string;

  @Column({ comment: '侧倾角', default: '' })
  obliqueAngle: string;

  @Column({ comment: '经度', default: '' })
  lng: string;

  @Column({ comment: '纬度', default: '' })
  lat: string;

  @Column({ comment: '滑行距离', default: '' })
  slidingDistance: string;

  @Column({ comment: '平均船速', default: '' })
  averageSpeed: string;

}
